package com.example.gausspaper.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "db_comment")
public class Comment {
    @Id
    @Column(length = 20)
    private String commentId;
    @Column(length = 10)
    private String time;
    private String content;
    @Column(length = 20)
    private String noteId;
    @Column(length = 10)
    private String userId;
}
